﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Handrise.Mobile.BasicModal.DataLayer;

namespace Handrise.CDCable.Mobile.Business
{
    /// <summary>
    /// GPS轨迹跟踪
    /// </summary>
    [Serializable]
    [EntityMapping(TableName = "GPSTrace")]
    public class GPSTrace
    {
        [EntityMapping(IsKey = true, ColumnName = "GPSTraceID")]
        public string GPSTraceID { get; set; }

        /// <summary>
        /// 采集时间
        /// </summary>
        [EntityMapping(ColumnName = "CollectDateTime")]
        public DateTime? CollectDateTime { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [EntityMapping(ColumnName = "Longitude")]
        public double? Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [EntityMapping(ColumnName = "Latitude")]
        public double? Latitude { get; set; }

        /// <summary>
        /// 和上一个点的距离
        /// </summary>
        [EntityMapping(ColumnName = "Distance")]
        public double? Distance { get; set; }

        /// <summary>
        /// 设备位置：GPS（地上）、WIFI（地下）
        /// </summary>
        [EntityMapping(ColumnName = "DeviceLocate")]
        public string DeviceLocate { get; set; }

        /// <summary>
        /// 采集类型：GPS(GPS采集),GPSConfirm(GPS确认），ScanConfirm（扫描确认）
        /// </summary>
        [EntityMapping(ColumnName = "CollectType")]
        public string CollectType { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [EntityMapping(ColumnName = "UserName")]
        public string UserName { get; set; }

        /// <summary>
        /// 上报状态
        /// </summary>
        [EntityMapping(ColumnName = "ReportState")]
        public string ReportState { get; set; }

        /// <summary>
        /// 确认到位时，对应的设备编码
        /// </summary>
        [EntityMapping(ColumnName = "DeviceCode")]
        public string DeviceCode { get; set; }
    }
}
